﻿using System;
using Newtonsoft.Json;

namespace ChinaTax.LeQi
{
    public class QueryInvoiceQuotaRequest : Request<QueryInvoiceQuotaResponse>
    {
        public QueryInvoiceQuotaRequest()
        {
            ServiceCode = "CXSXED";
        }

        [JsonProperty("nsrsbh")]
        public string TaxNo { get => LeQiConfig.TaxNo; }
    }

    public class QueryInvoiceQuotaResponse : Response
    {
        [JsonProperty("ztsxbz")]
        public string StopFlag { get; set; }

        [JsonProperty("bysxed")]
        public string TotalQuota { get; set; }

        [JsonProperty("kysyed")]
        public string BalanceQuota { get; set; }

        [JsonProperty("yxzed")]
        public string DownQuota { get; set; }

        [JsonProperty("yxzwsyed")]
        public string DownUnusedQuota { get; set; }

        [JsonProperty("sq")]
        public string Month { get; set; }
    }

}
